const _import = require("./_import_" + process.env.ROUT_MODE);
let financialCenter=        {
    path: "financial-center",
    name: "财务中心",
    component: {
        render (c) {
            return c("router-view");
        }
    },
    children: [{
        path: "account-center",
        name: "中金账户管理",
        redirect: "/financial-center/account-center/finance-account",
        component: {
            render (c) {
                return c("router-view");
            }
        },
        children: [{
            path: "finance-account",
            name: "账户信息",
            component: _import(
                "financial-center/account-center/finance-account"
            ),
            children: [{
                path: "finance-boundCard",
                name: "绑定对公提现银行卡",
                component: _import(
                    "financial-center/account-center/finance-account/finance-boundCard"
                ),
                meta: {
                    isSub: true
                }
            },
            {
                path: "finance-verify",
                name: "金额验证",
                component: _import(
                    "financial-center/account-center/finance-account/finance-verify"
                ),
                meta: {
                    isSub: true
                }
            },
            {
                path: "finance-addCard",
                name: "添加银行卡",
                component: _import(
                    "financial-center/account-center/finance-account/finance-addCard"
                ),
                meta: {
                    isSub: true
                }
            },
            {
                path: "finance-cash",
                name: "提现",
                component: _import(
                    "financial-center/account-center/finance-account/finance-cash"
                ),
                meta: {
                    isSub: true
                }
            },
            {
                path: "finance-recharge",
                name: "充值",
                component: _import(
                    "financial-center/account-center/finance-account/finance-recharge"
                ),
                meta: {
                    isSub: true
                }
            },
            {
                path: "finance-rechargeDetails",
                name: "汇款充值",
                component: _import(
                    "financial-center/account-center/finance-account/finance-rechargeDetails"
                ),
                meta: {
                    isSub: true
                }
            }
            ]
        },
        {
            path: "finance-transaction",
            name: "交易明细",
            component: _import(
                "financial-center/account-center/finance-transaction"
            ),
            children: [{
                path: "finance-transactionSee",
                name: "交易明细详情",
                component: _import(
                    "financial-center/account-center/finance-transaction/finance-transactionSee"
                ),
                meta: {
                    isSub: true
                }
            },]
        },
        {
            path: 'store-openMsg',
            name: '开户信息',
            component: _import('financial-center/account-center/store-openMsg'),
            // meta: {
            //   isSub: true
            // }
        }
        ]
    },
    {
        path: "service-center",
        name: "服务商账单",
        component: _import("financial-center/service-center"),
        children: [{
            path: "service-details",
            name: "详情",
            component: _import("financial-center/service-center/service-details"),
            meta: { isSub: true }
        },
        {
            path: "service-trading",
            name: "交易流水",
            component: _import("financial-center/service-center/service-trading"),
            meta: { isSub: true }

        },
        {
            path: "trading-details",
            name: "交易流水详情",
            component: _import("financial-center/service-center/trading-details"),
            meta: { isSub: true }
        },
        ]
    },
    {
        path: "collect-advance",
        name: "预收预付管理",
        redirect: "/financial-center/collect-advance/finance-prepaid",
        component: {
            render (c) { return c("router-view"); }
        },
        children: [{
            path: "finance-prepaid",
            name: "预付款列表",
            component: _import("financial-center/collect-advance/finance-prepaid"),
            children: [{
                path: "finance-transactionPay",
                name: "交易明细 ",
                component: _import("financial-center/collect-advance/finance-prepaid/finance-transactionPay"),
                meta: { isSub: true }
            },
            {
                path: "finance-transactionPaysee",
                name: "交易明细详情 ",
                component: _import("financial-center/collect-advance/finance-prepaid/finance-transactionPaysee"),
                meta: { isSub: true }
            }
            ]

        },
        {
            path: "finance-payee",
            name: "预收款列表",
            component: _import("financial-center/collect-advance/finance-payee"),
            children: [{
                path: "finance-transactionPayee",
                name: "交易明细  ",
                component: _import("financial-center/collect-advance/finance-payee/finance-transactionPayee"),
                meta: { isSub: true }
            },
            {
                path: "finance-transactionPayeesee",
                name: "交易明细详情  ",
                component: _import("financial-center/collect-advance/finance-payee/finance-transactionPayeesee"),
                meta: { isSub: true }
            }
            ]

        },
        {
            path: "finance-refund",
            name: "预收退款审批",
            component: _import("financial-center/collect-advance/finance-refund"),
        },
        {
            path: "finance-financialFlow",
            name: "账务流水",
            component: _import("financial-center/collect-advance/finance-financialFlow"),
        }
        ]
    },

    {
        path: "receivable-finance",
        name: "应收应付管理",
        redirect: "/financial-center/receivable-finance/finance-copeWith",
        component: {
            render (c) { return c("router-view"); }
        },
        children: [{
            path: "finance-copeWith",
            name: "应付列表",
            component: _import("financial-center/receivable-finance/finance-copeWith"),
            children: [{
                path: "details-payable",
                name: "应付列表详情 ",
                component: _import("financial-center/receivable-finance/finance-copeWith/details-payable"),
                meta: { isSub: true }
            },]

        },
        {
            path: "finance-collect",
            name: "应收列表",
            component: _import("financial-center/receivable-finance/finance-collect"),
            children: [{
                path: "details-collect",
                name: "应收列表详情 ",
                component: _import("financial-center/receivable-finance/finance-collect/details-collect"),
                meta: { isSub: true }
            },]

        },
        {
            path: "collect-confirm",
            name: "应收款确认",
            component: _import("financial-center/receivable-finance/collect-confirm"),
            children: [{
                path: "details-confirm",
                name: "应收款确认详情 ",
                component: _import("financial-center/receivable-finance/collect-confirm/details-confirm"),
                meta: { isSub: true }
            }]

        },
        {
            path: "receivable-stream",
            name: "应收应付流水",
            component: _import("financial-center/receivable-finance/receivable-stream"),
            meta: {
                keepAlive: true
            }
        },
        ]
    }, {
        path: "storedValue-finance",
        name: "储值业务",
        redirect: "/financial-center/storedValue-finance/finance-account",
        component: {
            render (c) { return c("router-view"); }
        },
        children: [{
            path: "finance-account",
            name: "账单列表",
            component: _import("financial-center/storedValue-finance/finance-account"),
            children: [{
                path: "details-account",
                name: "账单明细 ",
                component: _import("financial-center/storedValue-finance/finance-account/details-account"),
                meta: { isSub: true }
            },
            {
                path: "details-see",
                name: "查看 ",
                component: _import("financial-center/storedValue-finance/finance-account/details-see"),
                meta: { isSub: true }
            },
            ]

        },]
    }

    ]
}
export default financialCenter